/**
 * edurender
 * ersw_raster.h
 * (c) 2009 J. Brad Byrd
 */

#ifndef ERSW_RASTER_H
#define ERSW_RASTER_H

#include "ersw_types.h"
#include "ersw_texture.h"

typedef struct ERSWRasterState
{
	ERbool depthEnable;
	ERbool depthMask;
	ERSWFramebuffer *framebuffer;
	ERSWViewport *viewport;
	ERSWTexture2D *texture;
} ERSWRasterState;

void erswRasterizeTriangle(const ERSWRasterState *rasterState, const ERSWOutputVertex *v0,
	const ERSWOutputVertex *v1, const ERSWOutputVertex *v2, ERFrontFace face);

#endif // ERSW_RASTER_H
